<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>阿里云百炼平台 API 申请须知</title>
    <style>
        @font-face {
        	font-family: CustomeFont;
        	src: url('./static/font/AlimamaFangYuanTiVF-Thin-2.ttf');
        }
        * {
            box-sizing: border-box;
            transition: all 0.3s ease;
        }
        body {
            margin: 0;
            padding: 60px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #333;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
        }
        .container {
            max-width: 960px;
            margin: 0 auto;
            background: #fff;
            border-radius: 12px;
            padding: 50px 60px;
            box-shadow: 0 10px 40px rgba(0,0,0,.1);
            position: relative;
            overflow: hidden;
        }
        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        }
        h1 {
            font-size: 32px;
            margin-bottom: 30px;
            color: #2d3748;
            font-weight: 700;
            text-align: center;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }
        h2 {
            font-size: 22px;
            margin-top: 40px;
            margin-bottom: 20px;
            color: #2d3748;
            font-weight: 600;
            position: relative;
            padding-left: 25px;
        }
        p, li {
            line-height: 2.0;
            font-size: 16px;
            color: #4a5568;
            margin-bottom: 18px;
        }
        ul {
            padding-left: 25px;
            margin-bottom: 25px;
        }
        ul li {
            list-style-type: disc;
            margin-bottom: 12px;
        }
        .step {
            margin-bottom: 35px;
            position: relative;
            padding-left: 60px;
        }
        .step::before {
            content: attr(data-step);
            position: absolute;
            left: 0;
            top: 0;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 18px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }
        .step strong {
            font-size: 18px;
            font-weight: 600;
            color: #2d3748;
            display: block;
            margin-bottom: 12px;
        }
        .step img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin-top: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,.1);
            border: 2px solid #f0f0f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .step img:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,.15);
        }
        .tip {
            background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
            border-left: 4px solid #38a169;
            padding: 18px 22px;
            margin: 30px 0;
            border-radius: 8px;
            font-size: 15px;
            line-height: 1.8;
            color: #22543d;
            position: relative;
            box-shadow: 0 4px 15px rgba(56, 161, 105, 0.1);
        }
        .tip::before {
            content: '💡';
            position: absolute;
            left: 20px;
            top: 18px;
            font-size: 18px;
        }
        .tip p {
            margin-left: 25px;
            margin-bottom: 0;
        }
        a {
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
            border-bottom: 2px solid transparent;
            padding-bottom: 2px;
        }
        a:hover {
            color: #764ba2;
            border-bottom-color: #764ba2;
            text-decoration: none;
        }
        @media (max-width: 768px) {
            .container {
                padding: 30px 25px;
                margin: 10px;
            }
            h1 {
                font-size: 26px;
            }
            h2 {
                font-size: 20px;
            }
            .step {
                padding-left: 50px;
            }
            .step::before {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
        }
        @media (max-width: 480px) {
            body {
                padding: 20px 10px;
            }
            .container {
                padding: 25px 20px;
            }
            h1 {
                font-size: 24px;
            }
            .step {
                padding-left: 45px;
            }
            .step::before {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>阿里云百炼平台 API 申请使用须知</h1>

        <h2>一、平台简介</h2>
        <p>
            阿里百炼平台是阿里云推出的模型即服务（MaaS）平台，提供通义千问、通义听悟、通义万相等系列大模型能力。通过开放 API，开发者可快速集成文本生成、语音识别、图像生成等功能。
        </p>

        <h2>二、申请步骤</h2>
        <div class="step" data-step="1">
            <strong>步骤 1：</strong>登录阿里云控制台，进入 <a href="https://bailian.console.aliyun.com/" target="_blank">阿里百炼平台首页</a>。
        </div>
        <div class="step" data-step="2">
            <strong>步骤 2：</strong>在上方导航栏选择「模型服务」。<br>
            <img src="./static/image/note (1).png" alt="模型服务">
        </div>
        <div class="step" data-step="3">
            <strong>步骤 3：</strong>在左下角菜单中选择「密钥管理」。<br>
            <img src="./static/image/note (2).png" alt="密钥管理">
        </div>
        <div class="step" data-step="4">
            <strong>步骤 4：</strong>进入「API 密钥管理」页面后，点击右上角「创建 API-Key」，填写基本信息后生成密钥。请妥善保存。<br>
            <img src="./static/image/note (3).png" alt="创建 API-Key">
        </div>

        <h2>三、费用说明</h2>
        <p>
            本软件本身不收取费用，但是阿里云百炼平台模型采用按量计费模式，开通后请关注个人账户的使用量和费用。
        </p>

    </div>
</body>
</html>
